<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title></title>
</head>
<script type="text/javascript">
	// let a = 6;
	// let b = 9;
	// function simpleTag(Strings, aValExpression,bValExpression,sumExpression){
	// 	console.log(Strings);
	// 	console.log(aValExpression);
	// 	console.log(bValExpression);
	// 	console.log(sumExpression);
	// 	return 'foovar';
	// }
	// let untaggedResult = `${a} + ${b} = ${a + b}`;
	// let taggedResult = simpleTag`${a} + ${b} = ${a + b}`;
	// console.log(untaggedResult);
	// console.log('-------');
	// console.log(taggedResult);

	// let a = 6;
	// let b = 9;
	// function simpleTag(Strings, ...expressions){
	// 	console.log(Strings);
	// 	for(const expression of expressions) {
	// 		console.log(expression);
	// 	}
	// 	return 'foobar';
	// }

	// let taggedResult = simpleTag`${a} + ${b} = ${a + b}`;

	// console.log(taggedResult);

	let a = 6;
	let b = 9;
	function zipTag(strings, ...expressions) {
		return strings[0] +
			expressions.map((e, i) => `${e}${strings[i + 1]}`).join('');
	}
	let untaggedResult = `${a} + ${b} = ${a + b}`;
	let taggedResult = zipTag`${a} + ${b} = ${a + b}`;
	console.log(untaggedResult);
	console.log(taggedResult);
</script>

<body>
</body>

</html>